#ifndef __STORMWIDGET_STORMWIDGET_UILIBRARY_CSINGLELINEEDITUI_SINGLELINEEDITUI_H
#define __STORMWIDGET_STORMWIDGET_UILIBRARY_CSINGLELINEEDITUI_SINGLELINEEDITUI_H

#include "ControlUI.h"

class CSingleLineEditWnd;

class CSingleLineEditUI: public CControlUI
{
	friend CSingleLineEditWnd;
public:
	CSingleLineEditUI(void);
	virtual ~CSingleLineEditUI(void);

	LPCTSTR GetClass() const;
	UINT GetControlFlags() const;

	void SetText(LPCTSTR pstrText);

	void SetEditStyle(UINT uStyle);
	void SetReadOnly(bool bReadOnly);
	bool IsReadOnly() const;

	void Event(TEventUI& event);

	SIZE EstimateSize(SIZE szAvailable);
	void DoPaint(HDC hDC, const RECT& rcPaint);

protected:
	CSingleLineEditWnd* m_pWindow;

	bool m_bReadOnly;
	UINT m_uEditStyle;
};
#endif //__STORMWIDGET_STORMWIDGET_UILIBRARY_CSINGLELINEEDITUI_SINGLELINEEDITUI_H
